package com.jshan.blog.converts;

import com.jshan.blog.base.admin.dto.MenuListDto;
import com.jshan.blog.base.admin.entity.SysMenu;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SysMenuConvert {
    SysMenuConvert INSTANCE = Mappers.getMapper(SysMenuConvert.class);

    List<MenuListDto> SysMenuListConvertDtoList(List<SysMenu> list);

    SysMenu MenuDtoConvertSysMenu(MenuListDto menuListDto);
}
